package com.szgr.baoyin.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;

import com.szgr.baoyin.MainActivity;
import com.szgr.baoyin.R;

/**
 * 预约详情
 */
public class OrderDetailActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_order_detail);
        super.onCreate(savedInstanceState);
    }

    @Override
    public void initActionBar() {
        actionBarTitle.setText("预约详情");
    }

    @Override
    public void initView() {
        TextView orderAddress = (TextView) findViewById(R.id.order_address);
        orderAddress.setOnClickListener(this);

        findViewById(R.id.order_detail_judge).setOnClickListener(this);
        findViewById(R.id.order_detail_complete).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.action_bar_left:
                finish();
                break;
            case R.id.order_address:
                Intent addressIntent = new Intent(this,OrderMapActivity.class);
                startActivity(addressIntent);
                break;
        }
    }
}
